#pragma once

#include "ConsolePrerequisites.h"
#include "CCommand.h"

class CCommandFunction : public CCommand
{
public:
	CCommandFunction( const csString & strName, FuncExecCallback *pFunc, const csString & strHelp );
	virtual ~CCommandFunction();
	virtual csString				GetCommandTypeName()				{ return "Function"; }
	virtual ECommandType			GetCommandType()					{ return eCT_FUNCTION; }

protected:
	virtual bool					Execute( IConsoleScreen *pScreen, const CArgumentList & args );

private:
	FuncExecCallback *				m_pFunction;

};



